﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ILRuntime;

namespace ILRuntimeProject
{
    public static class HotFixSetting
    {
        private static Dictionary<string, int> dict_Setting;
        private static Dictionary<string, string> dict_String;

        public static void Init()
        {
            dict_Setting = new Dictionary<string, int>()
            {
                { ILRuntimeSettingConst.UseHotFixEnemyLevel,-1},
            };

            dict_String = new Dictionary<string, string>()
            {
                {ILRuntimeSettingConst.HotFixEnemyLevelTpye,typeof(LevelScript.LevelScript_HotFix).FullName },
            };
        }
  
        public static int StaticGetSetting(string tag)
        {
            if (dict_Setting.ContainsKey(tag))
                return dict_Setting[tag];
            else
                return -1;
        }

        public static string StaticGetString(string tag)
        {
            if (dict_String.ContainsKey(tag))
                return dict_String[tag];
            else
                return string.Empty;
        }
    }
}
